<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试页面</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
            color: #333;
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        h1 {
            color: #2c3e50;
            border-bottom: 2px solid #eee;
            padding-bottom: 10px;
        }
        .test-section {
            margin: 20px 0;
            padding: 15px;
            background: #f9f9f9;
            border-left: 4px solid #3498db;
        }
        button {
            background: #3498db;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            margin: 5px 0;
        }
        button:hover {
            background: #2980b9;
        }
        #result {
            margin-top: 10px;
            padding: 10px;
            background: #e8f4fc;
            border-radius: 4px;
            display: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>测试页面</h1>
        <p>这是一个用于测试的HTML页面，包含一些基本元素和功能。</p>
        
        <div class="test-section">
            <h2>功能测试</h2>
            <button onclick="showMessage()">点击测试</button>
            <div id="result"></div>
        </div>
        
        <div class="test-section">
            <h2>内容测试</h2>
            <p>这是一个段落文本，用于测试页面布局和样式。</p>
            <ul>
                <li>列表项1</li>
                <li>列表项2</li>
                <li>列表项3</li>
            </ul>
        </div>
        
        <div class="test-section">
            <h2>表单测试</h2>
            <form onsubmit="return false;">
                <div>
                    <label for="name">姓名:</label>
                    <input type="text" id="name" name="name">
                </div>
                <div>
                    <label for="email">邮箱:</label>
                    <input type="email" id="email" name="email">
                </div>
                <button type="submit">提交</button>
            </form>
        </div>
    </div>

    <script>
        function showMessage() {
            const result = document.getElementById('result');
            result.textContent = '测试成功！当前时间: ' + new Date().toLocaleString();
            result.style.display = 'block';
            
            // 3秒后隐藏消息
            setTimeout(() => {
                result.style.display = 'none';
            }, 3000);
        }
    </script>
</body>
</html>